package com.nifostasky.pattern.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * RabbitMq配置
 */
@Configuration
public class RabbitConfig {
    /**
     * 创建一个管道: helloMQ
     */
    @Bean
    public Queue queue() {
        return new Queue("helloMQ");
    }
}
